import 'package:floor/floor.dart';

import '../../utils/local_datetime.dart';

@entity
class GoodsScratch{

  @PrimaryKey(autoGenerate: true)
  int? id;

  final LocalDateTime createdDateTime;

  GoodsScratch(this.id, this.createdDateTime);

  GoodsScratch.fromCreatedDateTime(this.createdDateTime);

  factory GoodsScratch.create(){
    return GoodsScratch.fromCreatedDateTime(LocalDateTime.now());
  }

}

